package com.ruoyi.system.domain.module;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.apache.ibatis.type.JdbcType;

import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;

/**
 * 轮播图（广告）对象 ad_banner
 *
 * @author ruoyi
 * @date 2021-08-11
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("ad_banner")
public class AdBanner implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * $column.columnComment
     */
    @TableId(value = "id")
    private Integer id;

    /**
     * 广告的类型  1 - 个人中心处广告  2 - 订单列表处广告 3 - 优惠券列表处广告  4 - 搜索界面处广告
     */
    private Integer adType;

    /**
     * 图片地址
     */
	@TableField(updateStrategy = FieldStrategy.IGNORED,jdbcType = JdbcType.VARCHAR)
    private String imgUrl;

    /**
     * 广告链接的类型  1 - 单个商品的   2 - 商品页
     */
    private String linkType;

    /**
     * 链接的id
     */
    private Long linkKey;

    private String linkUrl;

    /**
     * $column.columnComment
     */
    private Integer state;

    /**
     * $column.columnComment
     */
    private Integer sort;

    /** 广告内容 */
    private String content;

    @TableField(exist = false)
    private String adTypeName;

    @TableField(exist = false)
    private String linkTypeName;

	@TableField(exist = false)
	private String imgPath;

    private Integer merId;

}
